package controller.strategy;

import model.spring.AbstractAddress;
import model.spring.AddressList;
import model.spring.PostalAddress;

public class HighBudget implements Strategy{

	private String message;
	
	@Override
	public void doWork(AddressList addressList) {
		if (addressList.size() != 0 ) {			
			for (int i = 0 ; i < addressList.size() ; i++ ) {
				if(addressList.get(i) instanceof PostalAddress)
				// only postal addresses can recieve a letter
					send(message,addressList.get(i));
			}
		}
	}

	@Override
	public void send(String message, AbstractAddress address) {
		// sends a letter to all postal addresses
	}

}
